package com.gkr.shopping.pager;

public class PageModel {

	 private int pageIndex = 1;
	 private int pageSize = 9; 
	 private int totalNum;
	  
	  
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalNum() {
		return totalNum;
	}
	public void setTotalNum(int totalNum) {
		this.totalNum = totalNum;
	}
	
	
	public int getStartNum(){
		           
		return (this.getPageIndex()-1)*this.getPageSize();
	}
	  
	  
}
